package com.woniuxy.springboottest.service.impl;

import com.woniuxy.springboottest.bean.UserBean;
import com.woniuxy.springboottest.mapper.UserMapper;
import com.woniuxy.springboottest.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author linke
 * @version 1.0
 * @className: UserServiceImpl
 * @description: 配置文件方式练习
 * @date 2021/11/16 17:40
 */
@Service
public class UserServiceImpl implements IUserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public List<UserBean> findAll() {
        return userMapper.findAll();
    }
}
